﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;

namespace JXC.Core.Models
{
    /// <summary>
    /// 采购退货单明细文件
    /// </summary>
   public class ReturnedDetail
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid Id { get; set; }//采购退货单明细单号
        [ForeignKey("CaigouReturnedId")]
        public Guid CaigouReturnedId { get; set; }//采购退货单单号
        [ForeignKey("CommodityInformationSheetId")]
        public Guid CommodityInformationSheetId { get; set; }//商品编码
        public int Quantity { get; set; }//数量
        public decimal UintPrice { get; set; }//单价
        public string Others { get; set; }//备注

        public CaigouReturned CaigouReturned { get; set; }

        public CommodityInformationSheet CommodityInformationSheet { get; set; }
    }
}
